<?php
#声明内结构

# 内部对象$this
class Saler{
	#属性
	protected $count =200;
	public $discount = 0.8;
	public $money =100;
	#定义一个方法

	public function getAll(){
		// echo $count,$discount, $money;
		#内部变量($this)
		// var_dump($this);
		echo $this->count,$this->discount,$this->money;
	}
}
$s = new Saler();
$s->getAll();